<html xmlns:th="https://www.thymeleaf.org">
<head >
    <title>Please Login</title>
</head>
<body >
<div th:fragment="content">
    <form name="f" th:action="@{/login}" method="post">
        <fieldset>
            <legend>Please Login</legend>
            <div th:if="${param.error}" class="alert alert-error">
                无效的用户名和密码
            </div>
            <label for="username">用户名</label>
            <input type="text" id="username" name="username"/>
            <label for="password">密码</label>
            <input type="password" id="password" name="password"/>
            <div class="form-actions">
                <button type="submit" class="btn">登陆</button>
            </div>
        </fieldset>
    </form>
</div>
</body>
</html>